package com.example.springboot.demo.conroller;

import com.example.springboot.demo.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;

@Controller
@RequestMapping("fastjson")
public class FastJsonController {

    @RequestMapping("/test")
	@ResponseBody
    public User test() {
        User user = new User();
        
        user.setId("11");
        user.setUserName("jack");
        user.setCreateTime(new Date());
        int a = 1/0;
        return user;
    }
}